package com.nk.iexam;

import com.nk.iexam.models.Category;

import android.os.Bundle;
import android.app.Activity;
import android.webkit.WebView;

public class KnowdledgeActivity extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_knowdledge);
        
        Category category = (Category) getIntent().getSerializableExtra(ReviewActivity.CATEGORY);
        String knowdledge = category.getKnowdledge();
       
        WebView knowdledgeView = (WebView) findViewById(R.id.knowdledgeTextView);
        knowdledgeView.getSettings().setBuiltInZoomControls(true);
        knowdledgeView.loadDataWithBaseURL("", knowdledge, Constants.HTML_TEXT, Constants.UTF8, "");
    }
}
